<?php

declare(strict_types=1);

namespace App\Model;

use App\Overwrites\MineModel;

/**
 * @property int $id 
 * @property array $car_category_ids 车辆分类ID
 * @property array $banner 轮播图
 * @property string $cover 封面图
 * @property string $name 名称
 * @property int $price 单价(天)
 * @property string $describe 描述
 * @property array $base_config 基础配置
 * @property array $high_light_config 突出配置
 * @property array special_prices 节假日价格
 * @property int $volume 下单量
 * @property \Carbon\Carbon $created_at 
 * @property \Carbon\Carbon $updated_at 
 */
class Car extends MineModel
{
    /**
     * The table associated with the model.
     */
    protected ?string $table = 'cars';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = ['id', 'car_category_ids', 'banner', 'cover', 'name', 'price', 'describe', 'base_config', 'high_light_config', 'volume', 'created_at', 'updated_at', 'special_prices'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = ['id' => 'integer', 'car_category_ids' => 'array', 'banner' => 'array', 'price' => 'integer', 'base_config' => 'array', 'high_light_config' => 'array', 'volume' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime', 'special_prices' => 'array'];
}
